<?php
/**
 * @Name: UserCustomRequest.php
 * @Author: yashuai<1762910894@qq.com>
 * @Desc: 用户自定义验证器
 */

namespace app\common\requests\rbac;

use app\common\requests\PackingRequest;

class UserCustomRequest extends PackingRequest
{

    public function rules()
    {
        return [];
    }

    public function message()
    {
        return [
            'UserID.require'           => '缺少记录ID参数',
            'UserID.integer'            => '记录ID参数类型异常',
            'OriginalPassword.require' => '原始不能为空',
            'UserPassword.require'     => '密码不能为空',
            'UserPassword.length'      => '密码长度为6-30位',
        ];
    }

}
